package com.sfac.springboot.modules.account.entity;

import com.sfac.springboot.modules.common.entity.AbstractEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;


/**
 * @author jzq
 * @date 2022/8/26 19:47
 */
@SuppressWarnings({"all"})
@Entity
@Table(name = "account_user")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User extends AbstractEntity {

    @Column(unique = true)
    private String userName;

    private String password;

    @Column(unique = true)
    private String email;

    private String userImage;

    @Transient
    private boolean rememberMe;

    @Transient
    private List<Role> roles;

}

